package com.dlws.modules.order.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dlws.modules.order.entity.OrderProductWeb;
import com.dlws.modules.order.mapper.OrderProductWebMapper;

/**
 * 
 * 描述：
 * 创建人： 魏泽超
 * 创建时间: 2016-6-1 下午3:57:14
 * @version
 */
@Service
@Transactional
public class OrderProductWebServiceImpl implements OrderProductWebService{

	@Autowired
	private OrderProductWebMapper orderProductCustomerMapper;
		
	
	@Override
	public OrderProductWeb queryOne(OrderProductWeb record) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.selectOne(record);
	}

	@Override
	public List<OrderProductWeb> queryAll(OrderProductWeb record) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.select(record);
	}

	@Override
	public int queryCount(OrderProductWeb record) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.selectCount(record);
	}

	@Override
	public OrderProductWeb queryByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.selectByPrimaryKey(key);
	}

	@Override
	public int add(OrderProductWeb record) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.insert(record);
	}

	@Override
	public int addSelective(OrderProductWeb record) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.insertSelective(record);
	}

	@Override
	public int delete(OrderProductWeb record) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.delete(record);
	}

	@Override
	public int deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKey(OrderProductWeb record) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKeySelective(OrderProductWeb record) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int queryCountByExample(OrderProductWeb example) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.selectCountByExample(example);
	}

	@Override
	public List<OrderProductWeb> queryByExample(OrderProductWeb example) {
		// TODO Auto-generated method stub
		return orderProductCustomerMapper.selectByExample(example);
	}

}
